﻿CREATE TABLE [dbo].[Animals]
(
	AnimalId int IDENTITY(1,1) NOT NULL, 
	UserId int NOT NULL, 
	RaceId int NOT NULL,
	Name varchar(25) NOT NULL,
	BirthDate [datetimeoffset](7) null,
	Sex bit not null default(0), --0 = Male ; 1 = Female
	WithPapers bit not null default(0), --0 = NO ; 1 = YES
	Vaxins int not null default 0,
	Discapacities varchar(500) null,
	IsForAdoption bit default(0) not null,
	IsForMate bit default(0) not null,
	Visible bit default(1) NOT NULL

CONSTRAINT [PK_Animals] PRIMARY KEY CLUSTERED 
	(
		[AnimalId] ASC
	)WITH (PAD_INDEX  = OFF, STATISTICS_NORECOMPUTE  = OFF, IGNORE_DUP_KEY = OFF, ALLOW_ROW_LOCKS  = ON, ALLOW_PAGE_LOCKS  = ON) ON [PRIMARY]
) ON [PRIMARY]